package com.thti.mecool.client.adapter;

import com.thti.mecool.client.activity.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class SalersListAdapter extends BaseAdapter {
	Context mcontext;
	String[] names={"张燕","张燕","张燕","张燕","张燕"};
	
	public SalersListAdapter(Context mcontext) {
		super();
		this.mcontext = mcontext;
	}

	public SalersListAdapter(Context mcontext, String[] names) {
		super();
		this.mcontext = mcontext;
		this.names = names;
	}
	
	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return names.length;
	}

	@Override
	public Object getItem(int arg0) {
		// TODO Auto-generated method stub
		return names[arg0];
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		convertView=LayoutInflater.from(mcontext).inflate(R.layout.mecool_salers_listview, null);
		
		return convertView;
	}

}
